<template>
  <view class="main">
    <view class="scroll" v-if="list.length > 0">
      <view class="item" v-for="(item, index) in list" :key="index">
        <view class="time">{{ item.createtime }}</view>
        <view class="item_info">
          <view class="title">{{
            item.url == 1
              ? "会员"
              : item.url == 2
              ? "积分"
              : item.url == 3
              ? "问答"
              : item.url == 5
              ? "优惠券"
              : ""
          }}</view>
          <mp-html
            style="margin-bottom: 20rpx"
            :content="item.info"
            container-style="font-size: 28rpx;color: #999;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;"
          >
          </mp-html>
          <view
            class="btn"
            @click="go(item)"
            v-if="item.url != '' || item.quiz_id != 0"
            >查看详情</view
          >
        </view>
      </view>
    </view>
    <view class="empty" v-if="list.length == 0 && isLoading == false">
      <u-empty
        text="暂无数据"
        width="200"
        icon="/static/img/empty.png"
        textColor="#999"
      >
      </u-empty>
    </view>
  </view>
</template>

<script
  type="text/javascript"
  src="plus-confusion://../pages/message/sysNotify/index"
></script>

<style lang="scss">
@import "../public.scss";

.empty {
  height: 100vh;
  padding-top: 350rpx;
}

.main{
  min-height: 95.3vh !important;
}
</style>
